﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace MvcApplication2.Models
{
    public class Employee
    {
        [Key]
        public int EmployeeID { get; set; }
        [Required(ErrorMessage="输入FistName")]
        public string FirstName { get; set; }
        [StringLength(5,ErrorMessage="超过长度")]
        public string LastName { get; set; }
        public int Salary { get; set; }
    }
}